﻿<%@ Page Title="" Language="C#" Theme = "DetailsView" MasterPageFile="~/Managers.master" AutoEventWireup="true" CodeFile="MVisitorGo.aspx.cs" Inherits="MVisitorGo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:DetailsView 
         ID = "dtlVisitor"
         HeaderText = "访客历史记录"
         SkinID = "Colorful"
         DataSourceID = "srcVisitor"
         EmptyDataText = "没有拜访者"
         AutoGenerateRows = "false"
         AllowPaging = "true"
         runat = "server">
         <Fields>
         <asp:BoundField 
             DataField = "visitname"
             HeaderText = "姓名" />
        <asp:BoundField 
             DataField ="sname"
             HeaderText = "被访者姓名" />           
        <asp:BoundField 
             DataField =  "b_n"
             HeaderText = "楼号" />
        <asp:BoundField 
             DataField =  "d_n"
             HeaderText = "宿舍号" />
        <asp:BoundField 
             DataField = "cometime"
             HeaderText = "到来时间" />
        <asp:BoundField 
             DataField = "leavetime"
             HeaderText = "离开时间" />
        
         </Fields>
     </asp:DetailsView>
     <asp:SqlDataSource 
         ID = "srcVisitor"
         ConnectionString = "<%$ ConnectionStrings:Dormitory%>"
         SelectCommand  = "select * from cometovisit where go = 'true'"
         runat = "server" ></asp:SqlDataSource>
</asp:Content>

